import Vue from 'vue'
import App from './App.vue'
import router from '@/router/router'
import store from '@/store/store'
import http from '@/utils/http'
import './plugins/element.js'
//import vcharts line histogram pie
import VeLine from 'v-charts/lib/line.common'
import VeHistogram from 'v-charts/lib/histogram.common'
import VePie from 'v-charts/lib/pie.common'
Vue.component(VeLine.name, VeLine)
Vue.component(VeHistogram.name, VeHistogram)
Vue.component(VePie.name, VePie)

//import vue-cookie
import VueCookies from 'vue-cookies'


import '@/assets/style/global.scss'

Vue.config.productionTip = false
Vue.prototype.$newHttp = http
Vue.prototype.$cookies = VueCookies
Vue.use(VueCookies)
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')